package day05work_b;

public class Lambda_test02 {
    public static void main(String[] args) {
        uerStringHandler(new StringHandler() {
            @Override
            public void printMessage(String message) {
                System.out.println("只待你千年万里");
            }

        });
        uerStringHandler((String message)->{
            System.out.println("我欲恐琼楼玉宇");
        });

    }
    public static void uerStringHandler(StringHandler stringHandler){

stringHandler.printMessage("我欲乘风破浪");
    }
}
